/* Reset CSS cơ bản */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Định dạng nền đen đặc trưng của Netflix */
body {
    background-color: #141414;
    color: white;
}

/* -------------------------------------------
   Thanh điều hướng (Header)
------------------------------------------- */
header {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    /* Hiệu ứng gradient mờ dần xuống dưới cho header */
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.logo {
    color: #e50914; /* Màu đỏ Netflix */
    font-size: 32px;
    font-weight: bold;
    margin-right: 40px;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff;
    font-weight: bold;
}

/* -------------------------------------------
   Nội dung chính (Danh sách phim)
------------------------------------------- */
main {
    padding: 0 40px 40px 40px;
}

.movie-section {
    margin-bottom: 40px;
}

.movie-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #e5e5e5;
}


.movie-row {
    display: flex;
    gap: 15px; 
}


.movie-card {
    width: 220px; 
    height: 330px; 
    border-radius: 5px;
    background-color: #333; 
    cursor: pointer;
    position: relative;
   
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 5px;
}


.movie-card:hover {
    transform: scale(1.1); 
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); 
    z-index: 10; 
}